

{#<!DOCTYPE html>#}
{##}
{#<html xmlns="http://www.w3.org/1999/xhtml">#}
{#<head id="Head1">#}
{#    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />#}
{#    <meta name="viewport" content="width=device-width,initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />#}
{#    <meta name="format-detection" content="telephone=no" />#}
{#    <link rel="stylesheet" href="/static/css/sm.min.css" tppabs="http://g.alicdn.com/msui/sm/0.6.2/css/sm.min.css" /><link rel="stylesheet" href="../../g.alicdn.com/msui/sm/0.6.2/css/sm-extend.min.css" tppabs="http://g.alicdn.com/msui/sm/0.6.2/css/sm-extend.min.css" /><link href="css/mian.css" tppabs="http://wxdk.wyk8.com/Exam/css/mian.css" rel="stylesheet" /><link href="font/iconfont.css" tppabs="http://wxdk.wyk8.com/Exam/font/iconfont.css" rel="stylesheet" /><title>#}
{#	登录#}
{#</title></head>#}
{#<body>#}
{#<div style="text-align: center; width: 500px; border: green solid 1px;">#}
{#<img alt="" src="https://www.baidu.com/img/baidu_jgylogo3.gif" style="margin: 0 auto;" />#}
{#</div>#}
{#    <div style="text-align: center; width: 800px; margin:0px; border: green solid 1px;">#}
{#        <img alt="" src="/static/images/logo.png" tppabs="http://wxdk.wyk8.com/Exam/images/logo.png" style="margin: 0 auto";/>#}
{##}
{#    <div class="mid-lg">#}
{#        <div class="bscss">#}
{#            <div class="lgs">#}
{#                <div class="huibg">#}
{#                    <div class="input-s">#}
{#                        <i class="iconfont icon-icon-calendar icobfr" style="display: block; float: left; padding-top: 0.1rem; width: 1.2rem"></i>#}
{#                        <input id="cardId" type="text" placeholder="激活卡号" value="" style="width: 9rem;" /><div class="cl"></div>#}
{#                    </div>#}
{#                    <div class="input-s" style="border-bottom: 0px;">#}
{#                        <i class="iconfont icon-mima icobfr" style="font-size: 1.1rem; display: block; float: left; width: 1.2rem"></i>#}
{#                        <input id="pwd" type="password" placeholder="密码" value="" style="width: 9rem;" /><div class="cl"></div>#}
{#                    </div>#}
{#                </div>#}
{#            </div>#}
{#            <div class="cl"></div>#}
{#        </div>#}
{#        <div class="shiyong"><a href="SubjectSelection.aspx-istry=1'.htm" tppabs="http://wxdk.wyk8.com/Exam/SubjectSelection.aspx?istry=1'">试用</a></div>#}
{#        <div class="batton-yellow">#}
{#            <button id="activeBtn">激活</button>#}
{#        </div>#}
{#        <br />#}
{#        <br />#}
{#    </div>#}
{#        </div>#}
{#    <script type='text/javascript' src="/static/js/zepto.min.js" tppabs="http://g.alicdn.com/sj/lib/zepto/zepto.min.js" charset='utf-8'></script>#}
{#    <script>#}
{#        $.config = { router: false }#}
{#    </script>#}
{#    <script type='text/javascript' src="/static/js/sm.min.js" tppabs="http://g.alicdn.com/msui/sm/0.6.2/js/sm.min.js" charset='utf-8'></script>#}
{#    <script type='text/javascript' src="/static/js/sm-extend.min.js" tppabs="http://g.alicdn.com/msui/sm/0.6.2/js/sm-extend.min.js" charset='utf-8'></script>#}
{#    <script>#}
{#        $("#activeBtn").click(function () {#}
{#            active();#}
{#        })#}
{##}
{#        function active() {#}
{#            var key = $("#cardId").val(), pwd = $("#pwd").val();#}
{#            if (key.length < 1) {#}
{#                $.alert("卡号不能为空", function () { $("#cardId").focus(); })#}
{#                return;#}
{#            }#}
{#            if (pwd.length < 1) {#}
{#                $.alert("卡密不能为空", function () { $("#pwd").focus(); })#}
{#                return;#}
{#            }#}
{#            $.alert("是否确认激活？", function () {#}
{#                $.post("Action/Login.ashx?ref" + new Date().getTime(), { action: "firstActive", key: key, pwd: pwd }, function (ret) {#}
{#                    if (ret=="true") {#}
{#                            $.alert('即将跳转 要激活的科目列表！', function () {#}
{#                                location.href = "SubjectSelection.aspx-firstActive=1.htm"/*tpa=http://wxdk.wyk8.com/Exam/SubjectSelection.aspx?firstActive=1*/;#}
{#                            })#}
{#                    }#}
{#                    else if (result == "exist") {#}
{#                        $.alert('该科目已激活或卡号已使用，请重新输入！')#}
{#                    }#}
{#                    else if (ret == "unfind") { $.alert("卡号,卡密不正确!"); }#}
{#                    else if (ret == "unlogin") {#}
{#                        $.alert("登录已过期!", function () {#}
{#                            location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx207e285d30b608a2&redirect_uri=http%3a%2f%2fwxdk.wyk8.com%2fExam%2fwxAction.aspx&response_type=code&scope=snsapi_userinfo&state=JIANLI";#}
{#                        });#}
{#                    }#}
{#                })#}
{#            })#}
{#            }#}
{##}
{#            //function showinfo() {#}
{#            //    $.post("Action/Login.ashx?ref" + new Date().getTime(), { action: "subjectAll" }, function (ret) {#}
{#            //        ret = $.parseJSON(ret);#}
{#            //        var  btns=[];#}
{#            //        for(var i in ret){#}
{#            //            var j = ret[i];#}
{#            //            btns.push({#}
{#            //                text:j.SubjectName,#}
{#            //                onClick:function(){#}
{#            //                    $.confirm("将要激活的科目为:"+j.SubjectName,function(){#}
{#                                    #}
{#            //                    })#}
{#            //                }#}
{#            //            })#}
{#            //        }#}
{#            //        $.modal({#}
{#            //            title:  '请选择要激活的科目',#}
{#            //            text: '科目一旦选择无法更改 请谨慎选择!',#}
{#            //            verticalButtons: true,#}
{#            //            buttons: [#}
{#            //              {#}
{#            //                  text: 'Button 1',#}
{#            //                  onClick: function() {#}
{#            //                      $.alert('You clicked first button!')#}
{#            //                  }#}
{#            //              },#}
{#            //              {#}
{#            //                  text: 'Button 2',#}
{#            //                  onClick: function() {#}
{#            //                      $.alert('You clicked second button!')#}
{#            //                  }#}
{#            //              },#}
{#            //              {#}
{#            //                  text: 'Button 3',#}
{#            //                  onClick: function() {#}
{#            //                      $.alert('You clicked third button!')#}
{#            //                  }#}
{#            //              },#}
{#            //            ]#}
{#            //        })#}
{#            //    });#}
{#            //}#}
{#    </script>#}
{#    <script>$.init()</script>#}
{#</body>#}
{#</html>#}

<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title></title>
		<link rel="stylesheet" href="/static/css/login.css" />
	</head>

	<body>
		<div class="loginbox">
			<h1>直播后台管理系统</h1>
            {% if res == 1 %}
            <script type="text/javascript">
                var txt=  "用户名或密码错误";
                window.wxc.xcConfirm(txt, window.wxc.xcConfirm.typeEnum.error);
		    </script>
            {% endif %}
			<form action="/" method="post" >
                {% csrf_token %}
			    <div class="login">
				    <img style="padding: 10px 0;" src="/static/images/logo.png" height="200" width="400"/>
				    <div class="inputbox">
					    <img src="/static/images/user.png" />
					    <input type="text" placeholder="请输入账户" name="name"/>
				    </div>
				    <div class="inputbox" style="margin-top: 20px;">
					    <img src="/static/images/password.png" />
					    <input type="password" placeholder="请输入密码" name="pwd"/>
				    </div>
				    <div class="remember">
					    <label >
						    <input type="checkbox" checked="checked" name="chebox"/>
						    记住密码
					    </label>
				    </div>
                    <a class="loginA"><input type="submit" value="登录"></a>
			    </div>
            </form>
        </div>
	</body>

</html>